import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store/index.js'
const app = createApp(App)
import CommonHeader from "./components/CommonHeader.vue";
import CommonAside from "./components/CommonAside.vue";
import axios from 'axios'
import VueAxios from 'vue-axios'



for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.component('common-aside',CommonAside)
app.component('common-header', CommonHeader)
app.use(router).use(store).use(VueAxios, axios)
app.use(ElementPlus)
app.mount('#app')